package windowFactoryPackage;

import javax.swing.*;
import java.awt.*;

public class SourceCodeWindow extends WindowGenerator {
	//Declare window components
	static JTextArea jtaSourceCode = new JTextArea("Source Code goes here\n\n\n\n\n\n\nand here\n\n\n\n\nooooh snap, here more" 
			+ "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" 
			+ "\n\n\n\n\n\n\n\n\nDaaaaaaamn, that's a lot of source code");
	private JScrollPane jspSourceCode;
	private JPanel centerPanel;// southPanel;
	
	public SourceCodeWindow(){
		//Set layout for parent JFrame
		setLayout(new BorderLayout());
		
		//Instantiate centerPanel
		centerPanel = new JPanel();
		centerPanel.setLayout(new BorderLayout());
		centerPanel.setBorder(BorderFactory.createEtchedBorder());
	
		jtaSourceCode.setEditable(false);
		jspSourceCode = new JScrollPane(jtaSourceCode);
		centerPanel.add(jspSourceCode, BorderLayout.CENTER);
		
		//add centerPanel to parent JFrame.CENTER
		add(centerPanel, BorderLayout.CENTER);
	}
}
